package com.zhj;

import com.IRule.MyIRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author: 张红娟
 * @Date: 2021/9/15 14:24
 * @Version: 1.0
 */
@SpringBootApplication
@EnableEurekaClient
// @RibbonClient添加自定义的负载均衡策略
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE", configuration = MyIRule.class)
public class ConsumerOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerOrderApplication.class,args);
    }
}
